package org.shopen.ai.puremvc.model.problem.cities
{
	import org.shopen.ai.puremvc.model.problem.IState;
	import org.shopen.ai.puremvc.model.problem.ITest;
	
	public class GoalTest implements ITest
	{
		protected var goalState : IState;
		
		public function GoalTest(goalState : IState)
		{
			this.goalState = goalState;
		}
		
		public function checkState(state : IState) : Boolean
		{
			var result : Boolean = goalState.equals(state);
			return result;
		}

	}
}